PLC BLOG | Micro800 Counter Instructions

Share on Facebook Share On Twitter Share on LinkedIn Share on Whatsapp


lg-12 col-12 fb-share-button">

Share on Facebook

Share on twitter

Share on Whats-App

Connected Components Workbench Micro800 Counter Instructions

Counter instructions use to control operations based on the number of events. Counter counts input bit of counter and increment or decrement by 1 when input bit of counter change. A Counter input bit is Pulses Or Events. Increment counter is known as Count up and decrement counter known as count down . counter output Depends On Type Of Counter. Counter output is total count of An Events Of How Many Times Has Occurred. when input bit of counter is change from true to false or false to true than counter start count and increment or decrement preset value by 1 every change of input bit counter. Connected Components Workbench Micro800 plc have three type of counter.


micro 800 CTU instruction

micro 800 CTU instruction increment by 1 upto preset value (maximum value of counter) of counter at change of every counter input . CTU have following parameter

micro 800 CTU instruction

above is the example of micro 800 CTU instruction. the preset value (PV) is declare to 10 when at the rising edge of counter input(_IO_EM_DI_01) counter current value(CV) increment by 1, at falling edge of counter input counter hold current counter value (CV). at every rising edge of counter input, counter current value incrmented by 1 (CV = CV + 1) upto Maximum Value of counter(PV). when CV is greater than or equal to PV than counter done bit is set to true.if counter done bit is set to true and if counter input is change false to true than no increment in CV.


micro 800 CTD instruction

micro 800 CTD instruction decrement by 1 upto zero at every change of counter input if Counter PV = CV and Load input bit is set to false. if PV ≠ CV than no decrement in CV because CV is already set to zero and counter done bit is true. CTD have following parameter

micro 800 CTD instruction

above is the example of micro 800 CTD instruction. the preset value (PV) is declare to 10 when at the rising edge of counter input(_IO_EM_DI_02) counter current value(CV) decrement by 1, at falling edge of counter input counter hold current counter value (CV). at every rising edge of counter input, counter current value decrement by 1 (CV = PV - 1) upto zero. when CV is less than or equal to Zero counter done bit is set to true.


micro 800 CTUD instruction

micro 800 CTUD instruction is count up or down. it's a combination of CTU and CTD.both operations at same time is not possible. Either you use this instruction as up counter or down counter. selection of up and down depends on counter selection bit i.e.CU or CD bit. CTUD have following parameter

micro 800 CTUD instruction

above is the example of CTUD instruction at rising edge of counter up (CU) bit CTUD operations same as CTU and rising edge of CD bi CTUD operation same as CTD. for counter up operation make sure CU have rising edge, reset and load bit set to false, and for counter down operation make sure CV = PV and reset and load bit is set to false. when CV is greater than or equal to zero than counter overflow bit is set to true. And if Counter value is less than or equal to the zero than underflow bit (QD) set to true.